<?php

//防止恶意调用
if (!defined('IN_MOD'))
{
    die('Hacking attempt');
}

global $configlang;

// 配置当前语言
if($configinfo['lang'])
{
	$langdata = $configinfo['lang'];
}else{
	$langdata = $configinfo['langdefault'];	
}

// 加载当前语言
if(file_exists(MODULEPARA_PATH . '/config/load/configlang_'.$langdata.'.php'))
{
	require(MODULEPARA_PATH . '/config/load/configlang_'.$langdata.'.php');// 加载当前语言库
}

// 加载模板程序配置
if($configinfo['tplok'] == 1)
{
	if(file_exists($configinfo['tplurl'].'/config/configlang_'.$langdata.'.php'))
	{
		include($configinfo['tplurl'].'/config/configlang_'.$langdata.'.php');
	}
}
?>